#include <stdio.h>

int p(int a)
{
    if(a<=2)
    {
        if (a==2)
        {
            return 1;
        }
        else{return 0;}
    }
    else
    {
        for (int i=2;i<a;i++)
        {
            if(a%i==0)
            {
                return 0;
            }
        else {return 1;}
        }
    }
}
int main()
{
    char c[101],x;
    int i=0,max=1,min=100,count=0,cha;
    scanf("%s",c);
    while (c[i]!='\0')
    {
        int j=0;
        while (c[j]!='\0')
        {
            if(c[j]==c[i])
            {
                count++;
            }
            j++;
        }
        if(count>max)
        {
            max=count;
        }
        if(count<min)
        {
            min=count;
        }
        count=0;
        i++;
    }
    cha=max-min;
    if (p(cha)==1)
    {
        printf("Lucky Word\n%d",cha);
    }
    else {printf("No Answer\n0");}
    return 0;
}
